/**
 * 断言函数
 * @param {boolean} condition 
 * @param {string} desc 
 */
export function assert(condition, desc) {
    if (!!!condition) throw new Error(desc);
}